using BasicData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Produce.Application.Services
{
    /// <summary>
    /// 客户数据服务接口
    /// </summary>
    public interface ICustomerDataService
    {
        /// <summary>
        /// 获取所有客户列表
        /// </summary>
        /// <returns>客户列表</returns>
        List<CustomerModel> GetAllCustomers();

        /// <summary>
        /// 根据ID获取客户
        /// </summary>
        /// <param name="id">客户ID</param>
        /// <returns>客户信息</returns>
        CustomerModel GetCustomerById(long id);

        /// <summary>
        /// 根据姓名查找客户
        /// </summary>
        /// <param name="name">客户姓名</param>
        /// <returns>匹配的客户列表</returns>
        List<CustomerModel> GetCustomersByName(string name);
    }
}